xen/page_alloc: Distinguish different errors from assign_pages()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Jun 2016 17:42:15 +0000 (18:42 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 30 Jun 2016 11:31:30 +0000 (12:31 +0100)
commit8cf167595f4e5db8cbc223c1ff6e109d6daad5ff
treecb100e8a59c88a8b46087ddd59e5edb020f51764
parent3572f2fa7b0f6f20eb145bdccaf5888c76be8960
xen/page_alloc: Distinguish different errors from assign_pages()

assign_pages() has a return type of int, but only returns 0 or -1.  As there
are two distinct failure cases, return a more meaningful error.

All caller currently use its boolean nature, so there is no resulting
change (yet).

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/page_alloc.c